package com.wyg.singleton;

/**
 * @description:
 * @author: WYG
 * @time: 2021/4/22 16:00
 */

public class StaticSingleton {
    private static class SingletonHolder {
        public static StaticSingleton singleton = new StaticSingleton();
    }
    private StaticSingleton() {}

    public StaticSingleton newInstance() {
        return SingletonHolder.singleton;
    }
}
